﻿<%@ Page Language="C#" MasterPageFile="~/rightContent.Master"  AutoEventWireup="true" 
    CodeBehind="workPlanEdit.aspx.cs" Inherits="WEB.workPlanEdit" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
    <style type="text/css">
        .style1
        {
            height: 22px;
        }
        .style2
        {
            height: 21px;
        }
        .style3
        {
            height: 20px;
        }
        .style4
        {
            height: 18px;
        }
        .style5
        {
            height: 23px;
        }
        .style6
        {
            height: 24px;
        }
        .style7
        {
            height: 25px;
        }
        .style11
        {
            height: 29px;
        }
    </style>
    <script language="javascript">
        var flag;
        function openDialog(srcW, srcH, srcU, sl) {
            var X = 0;
            var Y = 0;
            var Cstyle;
            X = (screen.width - srcW) / 2;
            Y = (screen.height - srcH) / 2;
            Cstyle = "dialogLeft:" + X + "px;dialogTop:" + Y + "px;dialogHeight:" + srcH + "px;dialogWidth:" + srcW + "px;help:no;status:no;scroll:" + sl;
            var sReturnVal = window.showModalDialog(srcU, window, Cstyle);
            if (sReturnVal == undefined) {
                sReturnVal = window.returnValue;
            }
            return sReturnVal;
        }
        function OpenChildWinCUS() {
            var result = openDialog('570', '550', '../customer/ChildAdd.aspx', 'no');
            if (result != "" && result != null) {
                document.getElementById("<%=tbcID.ClientID%>").value = result;
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    计划录入
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">

    <script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <table align="center" class="style1">
        <tr>
            <td class="style2" style="text-align: center">
                &nbsp;</td>
            <td class="style6">
                <asp:Label ID="lblID" runat="server" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style11" align="left">
                计划日期:<td class="style11">
                <asp:TextBox ID="tbplanDate" runat="server" class="Wdate" AutoPostBack="False"></asp:TextBox>
                </td>
            </td>
            <td class="style11" align="left">
                客户：<td class="style11">
                <asp:TextBox ID="tbcID" runat="server"></asp:TextBox>
                <asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" ServiceMethod="GetCustomersName"
                                                    TargetControlID="tbcID" MinimumPrefixLength="1" CompletionInterval="358">
                                                </asp:AutoCompleteExtender>
                </td>
                <td>
                <asp:LinkButton ID="lbAddCus" runat="server" Font-Bold="True" 
                                                    Font-Italic="False" Font-Names="Bauhaus 93" Font-Overline="False" 
                                                    Font-Size="Large" Font-Underline="False" ForeColor="#3333FF" ToolTip="添加客户">+</asp:LinkButton>
                </td>
            </td>
        </tr>
        <tr>
            <td class="style11" align="left">
                执行人：<td class="style11">
                <asp:TextBox ID="tbWorkMan" runat="server" MaxLength="5"></asp:TextBox>
                </td>
            </td>
            <td class="style11" align="left">
                货物名称：<td class="style11">
                <asp:TextBox ID="tbGoodsName" runat="server" MaxLength="50"></asp:TextBox>
                </td>
            </td>
        </tr>
        <tr>
            <td class="style11" align="left">
                船名：<td class="style11">
                <asp:TextBox ID="tbShipName" runat="server" MaxLength="50"></asp:TextBox>
                </td>
            </td>
            <td class="style11" align="left">
                数量:<td class="style11"> 
                <asp:TextBox ID="tbNo" runat="server" Width="147px" MaxLength="40"></asp:TextBox>
                </td>
            </td>
        </tr>
        <tr>
            <td class="style3" align="left">
                注意事项： <td class="style7">
                <asp:TextBox ID="tbNote" runat="server" Height="67px" MaxLength="512" Rows="10" 
                    TextMode="MultiLine"></asp:TextBox>
                </td>
            </td>
            <td class="style4" align="left">
                工作内容：<td>
                <asp:TextBox ID="tbJob" runat="server" Height="65px" TextMode="MultiLine" 
                    MaxLength="512"></asp:TextBox>
                </td>
            </td>
        </tr>
        <tr>
            <td class="style5">
                &nbsp;</td>
            <td class="style6">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnSave" runat="server" onclick="btnSave_Click" Text="增加" />
            </td>
        </tr>
    </table>
</asp:Content>

